import {defineConfig} from "rollup";
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';

export default defineConfig({
    input: './src/index.ts',
    output: [
        {
            file: 'dist/index.cjs',
            format: 'cjs'
        },
        {
            file: 'dist/index.mjs',
            format: 'es'
        },
        {
            file: 'dist/index.js',
            format: 'iife',
        }
    ],
    plugins: [
        resolve(),
        typescript()
    ]
});